package com.itht.baoleme.domain.web;

/**
 * 自定义接口异常类
 */
public class WebServiceException extends Exception{

    private static final long serialVersionUID = 1L;

    /**
     * 自定义异常的统一返回
     */
    private WebServiceMessage webMessage;


    public WebServiceException(WebCodeEnum codeEnum) {
        this.webMessage = new WebServiceMessage(codeEnum.getCode(), codeEnum.getMessage());
    }

    public WebServiceMessage getWebMessage() {
        return webMessage;
    }

    public void setWebMessage(WebServiceMessage webMessage) {
        this.webMessage = webMessage;
    }
}
